package Homeworks.HOMEWORK0223;

import java.util.Scanner;

//BMI   18.5   23.9   27   32
public class Homework0223_3 {
    public static void main(String[] args){
        System.out.println("输入身高");
        Scanner sc=new Scanner(System.in);
        int height=sc.nextInt();
        System.out.println("输入体重");
        int weight=sc.nextInt();

        double BMI= weight/1.0/height/height*10000;
        if(BMI>32){
            System.out.println("非常肥胖");
        }else if(BMI>27){
            System.out.println("肥胖");
        }else if(BMI>23.9){
            System.out.println("过重");
        }else if(BMI>18.5){
            System.out.println("正常");
        }else{
            System.out.println("过轻");
        }
        System.out.println("BMI为"+BMI);


    }
}
